.PHONY:all
all:tcpserver tcpclient

LDFLAG=-DSelfDefine=1#此处-D选项相当于生成一个宏，-D后面的就是宏

#LDFLAG=

tcpserver:TcpServerMain.cc
	g++ -o  $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp
tcpclient:TcpClientMain.cc
	g++ -o  $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp

.PHONY:clean
clean:
	rm -f tcpserver tcpclient